package com.yanqu.road.entity.activity.flowercards;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 花牌
 */
public class FlowerCard {

    /**
     * 位置索引
     */
    private int position;

    /**
     * 卡牌id（美女id）
     */
    private int cardId;

    /**
     * 卡牌状态
     */
    private int state;

    /**
     * 透视
     */
    private boolean perspective;

    /**
     * 是否一直展示
     */
    private boolean show;

    /**
     * 透视持续回合（当等于0，恢复盖牌）
     */
    private int ppRound;

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public int getCardId() {
        return cardId;
    }

    public void setCardId(int cardId) {
        this.cardId = cardId;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public boolean isPerspective() {
        return perspective;
    }

    public void setPerspective(boolean perspective) {
        this.perspective = perspective;
    }

    public int getPpRound() {
        return ppRound;
    }

    public void setPpRound(int ppRound) {
        this.ppRound = ppRound;
    }

    public boolean isShow() {
        return show;
    }

    public void setShow(boolean show) {
        this.show = show;
    }

    @JSONField(serialize = false)
    public FlowerCard copy(){
        FlowerCard copy = new FlowerCard();
        copy.setPosition(position);
        copy.setCardId(cardId);
        copy.setState(state);
        copy.setPerspective(perspective);
        copy.setPpRound(ppRound);
        copy.setShow(show);
        return copy;
    }
}
